﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _13_List集合_Lambda表达式
{
    public class Student
    {

        /// <summary>
        /// 姓名
        /// </summary>
        public string Name { get; set; }
        /// <summary>
        /// 考试科目
        /// </summary>
        public string Subject { get; set; }
        /// <summary>
        /// 考试成绩
        /// </summary>
        public int Score { get; set; }

        public Student(string name, string subject, int score)
        {
            Name = name;
            Subject = subject;
            Score = score;
        }

        public void Show()
        {
            Console.WriteLine("姓名：{0}，科目：{1}，成绩：{2}", Name, Subject, Score);
        }

    }
}
